package sanshui.system.trade;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableScheduling;
import sanshui.system.trade.config.SpringContextHolder;

@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableScheduling
@MapperScan({"sanshui.system.trade.db.mapper"})
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
    }
    public MainApplication(SpringContextHolder springUtils) {
        //这个就是我@Component注解的SpringUtils 就是随便用一下它 它就先setBean了 666
        springUtils.toString();
    }
}
